CC := gcc
CFLAGS :=  -g -Wall
LDFLAGS :=
LIBS :=

.PHONY: all
all: server client file

.PHONY: server
server: server.o
	$(CC) $(CFLAGS) $(LIBS) $(LDFLAGS) $^ -o $@

.PHONY: client
client: select_client.o
	$(CC) $(CFLAGS) $(LIBS) $(LDFLAGS) $^ -o $@

.PHONY: file
file: select_file.o
	$(CC) $(CFLAGS) $(LIBS) $(LDFLAGS) $^ -o $@

.PHONY:clean
clean:
	$(RM) -fv server.o server select_client.o client select_file.o file
